const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");
// const IFrame = () => import("@/layout/frame.vue");
import Home2 from "@iconify-icons/ri/home-office-line";

export default {
  path: "/",
  name: "Home",
  component: Layout,
  redirect: "/welcome",
  meta: {
    icon: Home2,
    title: "首页",
    rank: 0
  },
  children: [
    {
      path: "/welcome",
      name: "Welcome",
      component: () => import("@/views/welcome/index.vue"),
      meta: {
        title: "首页",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },
    {
      path: "/usecenter",
      name: "UserCenter",
      component: () => import("@/views/welcome/usercenter/index.vue"),
      meta: {
        title: "个人中心"
      }
    }
    // {
    //   path: "/deepseak",
    //   name: "DeepSeak",
    //   component: IFrame,
    //   meta: {
    //     title: "deepseak",
    //     frameSrc: "http://www.163.com"
    //   }
    // }
  ]
} satisfies RouteConfigsTable;
